update css slider and menu index