Divide GPX file into segments