use jquery masonry (http://masonry.desandro.com/index.html)