clean up the masonry styles, improve the options json on the gallery directive