added content_gallery, thumbnail_gallery directives