Is there a way to automaticly size UIgridLayout?

You can try to use LayoutUtil for automatic UIAspectRatio.

Get it here:
LayoutUtil: Automatically sizes a ScrollingFrame’s UIGridLayout/UIListLayout - Resources / Community Resources - DevForum | Roblox