Because you reentered US using the new H-1 visa, all of these record is not counted no matter whether it was gap/illegal or not. That means it will not affect you anything.