fix jquery for gallery page