sliced_model_generics function

Slice-aware model fitting generics