move masonry creation/destruction out of helper