Sure you can stay, because your
485 is pending. Even without 485, INS used to be generous for such a small gap of 3 weeks during H1 transfer unless you are caughted by INS personnel (law enfocement department) during the gap. Again if you want to close the gap, delay the last pay until the day before the beginning of the next job.