update apidoc for `previous` and `next`
update and also modify the `elementByAxis`