How can I fix this GUI bug?

On the first picture between each frame there’s a 5 pixels gap, everything looks good.

But whenever I resize my screen, something goes wrong and gap between each frame is random (if you look closely). Is there a way I can fix this?
bad

What the problem and what do you want to fix?

Whenever I resize my screen, gap between each frame messes up as you can see on picture. But everything is perfect when I’m in full screen, I wonder if its possible to fix it (so that when I resize screen, positions wont mess up)

Have you tried using UIListLayout? I’m not sure if it will help, but you can set the padding between elements. It might keep the spacing between your frames when you resize your screen.

Yeah, tried it and still the same issue