fixes for gallery_4 theme