calculate sample size for thumbnails as well