Added option to work with multiple slices