Don't show prev / next elements when they're not available

Fixes #237