You can have some gap between your two jobs as long as your old H1b does not expire. My lawyer told me I can have upto 3 month break in between, which I doubt. But I did take a week break between my two jobs.
Hope this helps. But you'd better consult with your lawyer.