Once you have submitted your H1b extension before your H1b expiretion, you can continue working, there is no problem and there is no gap for your status.