Fixed on-resize issue

The blocks aren't out of place anymore when the window is resized.