I have 5 segments and I got distance of the each segment that it (513.79, 243.38, 59.49, 129.07, 213.84) adding all these and dividing with 5 I have 231.92. This will be the distance of each segment but now my question is how to reposition all those segments.