Modified the way to create slice
Merged