Useful to set the elements of given class into a masonry form