set layerheight, layerwidth + grid