send visa change right before your layoff,say 10 days earlier.if changed to H4, you cannot apply for H1 before H4 approved.