Slideshow is a client-side feature that you can enable using a client-side framework. Such as JavaScript (or its library jQuery). The part of database in this is just that it would provide you with the resources.
Anyhow, there are multiple jQuery plugins already present to enable this feature in your web application. I was not able to make up my mind from a list of good libraries. So, here is a
Google search result for the libraries for you[
^].