trim_lines_at function

Helper for isochrones lines cutting