CSS and JS Fixesfor Gallery 4