adding shuffle_slice solution using array slicing