adds theme support for HTML5 galleries