Fix getting wrong element.
Disable prev/next when needed