adding functions to split glmPolylines