Added pinterest-like functionality with jQuery masonry