If your web page loads the slider markup dynamically (ajax, appendChild, etc.), or you want to update the slider items on the fly, you can use the slider's reload function:
imageSlider.reload();
The reload is the slider's built-in function that will help:
View the source of this page for the sample code.
This demo contains no advanced features. It is free to use.