Added masonary & imagesloaded functionality to gallery template.