auto adjust vertical spacing for nested grids