css and js tweaks to gallery page