fix gallery links and images