Fix resize/rotate of browser breaking the masonry layout.