check for thumbnail visibility earlier