Change thumbnails generated into a list for easy CSS management