clean up rendering of grid and element spacing