Introduce get_adjacent_items()

Makes it easier to create navigation of the form `Previous | Parent | Next`.