insert only visible lines in dom