is Gap Limit only for consecutive address?
The gap limit is the number of consecutive unused addresses after the highest used address. So if address 19 receives some Bitcoin, then, with a gap limit of 20, the next 20 addresses will become the lookahead. Since 35 will then be seen, the next 20 after address 35 become the lookahead.