If your current status is H1 or H4, you can get an H4 visa to come back without affecting your I-485. Otherwise, your I-485 will be invalid if you use h4 to come back.