Use Repeater to query you dynamic data.
To set number of slides – go to Slider setting codeblock and to JS part. There you will find code to change number of slides.