improve masonry relayout