Electrum picks a change address that hasn't been used before to receive the remaining small coin. It will generate more change addresses if the ones with no history of transactions are almost finished.
It will also generate more receiving addresses if you use an empty receiving address to receive bitcoin to them.
For receiving addresses, you'll always see at least 10 un-used change address while for receiving address, you'll always see at least 20.
If for some reason, you decide to skip the addresses' order and not use the address in the chronological order, then there'll also be at least X unused addresses after that specific address, depending on whether it's change or receiving.