fix for gallery styles on themes not supporting html5