added thumbnail test to fancybox gallery