Specific Slide changes

I was wondering is there a way to make changes based on a specific slide?

I was able to replicate this slider, however my problem is that the code only changes the active based on the button clicks. However in the example provided the gesture to slide is not on. When i replicated it it works exactly the same but I want the buttons borders to change if i gesture slide to change slides. http://slider-changer.webflow.io

Is there some kind of js .w-round div:nth-child = 1 then the specified button to become active?

@bartekkustra