jQuery Cycle - dynamically build slideshow with pager / goto functionality?

jQuery Cycle - dynamically build slideshow with pager / goto functionality?

Hi,

I am trying to add some pager / goto functionality to my slideshow.
Currently the slideshow is dynamically build from a slideshow list with #prev #next functionality:

http://jquery.malsup.com/cycle/add6.html

Now I want to add a goto anchor to jump to slide #10, #20, #30 etc. but I can't figure how how to call the function.

http://jquery.malsup.com/cycle/goto.html

Is that even possible with a dynamically build slideshow or do I have to preload or use a markup that loads all images first?

Thanks for any help and hints in advance.