module for prev next on nodes