I am with Egg here in that there are simply better alternatives for creating slideshows and sliders. Where the design calls for some level of automation and transition, then at least for me, it makes sense to create a sub-website and embed that into the main website using a standard iframe. Easier to maintain and update.

Here are two examples; a presentation embedded into a main website and a transition website embedded into the main website. Both can have different transitions as well, so there a many options to play with. Credit goes to Siran and Acorn for the code that makes these work.

https://initiostar.co.uk/demo/photo-slider/