1. You cannot travel outside the US , by any means, after filing an I-485 until you receive an approved advance parole document (3 to 6+ months). Doing so would abandon the I-485.
2. If you leave the US before filing an I-485, you cannot enter the US via the B2 with the intent to stay and adjust status.