use selectedIndex for thumbnails view