This slider works based on your HTML tag.
You just need to write a Element with a src and an alt attribute.
Your src will be your image and alt will be your caption automatically.
You can add as many as pictures you want!
You do not need to change JavaScript at all!