Grid Layout Group leaking outside canvas.

Hi all, I was wondering how I can limit the objects within a grid to be hidden if they go outside the panel they are contained in.

Below is how I wish for the UI to look.
alt text

But as more and more objects get added, this is what it turns out like.
alt text

How can I make it so that each new item after the 9 limit become hidden until a space is available, or make it so they hide behind all other UI’s?

Use Rect Mask 2D (component) . It will work fine.