Centered grid on resize.