Tweaking the way gallery styles and js was loaded.