[HistoryView] Extract slider related code from drawGraph() to drawSlider()