Invert previous/next mappings