fix issue with fancybox gallery having all images