Fixed parameters from next and previous triggered events to avoid doubling index on click event