added active slide tracking functionality