fixed ajax for gallery