
Quoting
Mr. Knowitall
If you didn't have paystubs from your former employer because you were terminated or laid off, you appear to have an overstay problem. And you've been laid off now, so you have an unofficial ten days from the date you were laid off to pack up and leave.
Your best present option appears to be to apply immediately to adjust your status to L2 status. If you do that you will be in L2 status, not in H1B status. If you leave the country, you can apply for an L2 visa to return (provided you don't have a problem arising from an overstay). During the six year duration of your H1B visa, you should later be able to adjust back to H1B status if you find a qualified employer.
Given the lack of key information in your post, I suggest that you consult an immigration lawyer as soon as you can.