create_slice modified