store iteration width/height and use it explicitly for masonry