changing grid to multiple grids