fix old gallery css and js