Please check the following tutorial explaining how to get the contents of a folder on your page:
It's the same for dynamic swiper, just skip the part where this toturial shows how to list the files on the page and use the dynamic data source in the Swiper UI instead.