update scrollspy and slider