function to slide left/right added; buttons left/right only generated if number of years extends the number of shown bars