add support for html5 galleries/captions