The easiest way is to add a slideshow JavaScript file to the page and then use a Repeater with the Media files data source web part.
- The data source provides the access to the right data.
- The repeater allows you to transform the data so the output is as required.
- The javascript provides the sliding animation and controls