setting active state for slide navigation