How to get all nodes from current position to next position

@aron_granberg can you give me some solution please?