Fix masonry layout

re #173