section_interval function

Get index of first and last line of section