the grids now store their number of layers, such that different refinements have different number of layers