updated masonry config with media queries