Move the slice mode enum to the public API

This makes it easier to set the uiSliceMode parameter in the public API.