fit content into grids as per instructions