Redraw grid on resize