slide grids depending on button clicked