you stay with your original employer for 180 days starting from the receipt date of your I-485. During this period, you will work with the new company as a consultant. In this way, your new company should transfer your salary to your old employer that will pay you salary. Also, without H-1B transfer, you can not work for the new company.