slice create function added