Adds a getSize function to gridLayout