I have created a separate JS file with this code and it works perfect. Thanks for that!
I was wondering how could I create multiple galleries in one html page. I would have 10 thumbnails in one HTML and each one would have it's own "slideshow of items not currently visible".
I tryed naming the thumbnails id="example1", id="example2" and so on... and in the same separate JS file I specified the different ids and it's photos for all other galleries. One after the other. It worked,but only sequentially. I can't open gallery number 2 if gallery number 1 has not yet been opened!
Can anyone help me with this issue? Thanks a lot for your time!