resizing of window now resizes the grid