Slightly messy but not bad
prev
index
next