Automatic Inventory Sorting

Im trying to make an automatic inventory system that will fill the gaps in the HotBar. For example say i have 3 tools in my tool bar and i delete the second one. Now there is a gap between 1 and 3. Is there a property that i can enable to automatically fill this gap? or will i have to script it in?

You can use uigridlayout or uilistlayout

how would i do that with the default Roblox hotbar?