Inventory bug in my game

so the inventory system example im using from jro1 has a bug with some slots skipping eachother
here is a picture of it


game link:https://flowlab.io/games/play/2633446
advance inventory example by JRO1:https://flowlab.io/game/play/1796781