Split out next and previous into components.