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: