Integration of “Segment Anything Model”?

Could it use a similar logic to what is used during the “fill between slices” tool to handle multiple slices?