Change line background color when sliding.