resize the grids