add line number output option so that the slice is more readable