Fixing gallery URLs