Add prev and next listeners