Removing first and last point from a list

maybe that help you to find the points based on u v directions