more work on thumbnails
more changes for thumbnails