Gallery redraw when resizing window.