make the highlight only work on visible lines