multiple grids per page

grid generation functionality separated from layout