made changes for jquery masonry