How should I target the previous slide?

Hi,

Sorry for the late reply.

How can I do this?

I tried:
active = (active - 1) % slide.length;
lastSlide = active - 1;

But that did not work, don’t really know what to save there.