Multiple sliders on the same page

Hi,

I have several articles on a same page. Some of these articles have pictures and I would like their pictures to be shown (automatic slider).

I use a javascript for that.

When I have only one article, the script works : https://codepen.io/thirt/pen/rNBYdqN

I tried to update the script in the aim of running on multiple articles on the same page but unfortunately it seems not working : https://codepen.io/thirt/pen/QWLOmaZ?editors=0100

Have you an idea of the problem in my script ?

Kind regards.

Have a nice evening.
Thierry