adding css class active on li according to the active slide in the slider