Hello. My name is, Mike. I'd like to try and assist you today. Essentially the answer is, yes, you can do this theoretically however several factors come into play. First, make sure you TV has an input for a USB device, and secondly make sure it can read the files. you may find it easier to hook up a laptop to the TV to run the slideshow depending on the capabilities your TV has.
As for slideshow software, you really will just have to do a search and figure out what is going to work best for your needs. Now obviously for software you have to pay for you will get more options and capabilities than most free solutions. But you can look at software like what is offered by Kizoa where you can create slideshow and video files.