my own approach to a "masonry" plugin