Now resizes the grid after toggling the sidebar and infobar