Changing width and height of grid