The annotator's support for slices is managed on the UI side. The UI detects if it is within a slice, then systematically includes the ontologies of the current slice into the "ontologies" parameter for the API call.
Done in this commit: agroportal/bioportal_web_ui@79298f0