added slider for path recording distance.