grid panel stacking on top of itself

Hi,
So I’m trying to display the player’s inventory and the contents of a container on the screen. The first pic, it shows what it looks like in the designer window of the widget and what I would like it to look like. It’s of the same widget that I made which is just a uniform grid. The second picture shows the two widgets overlapping. I’m not sure why this is happening. Any ideas as to why would be greatly appreciated. Let me know if I need to clarify anything.