Correct vertical alignment of grid elements