fixed masonry layout to recognize window width onload