Center the grid in the window