make Slice passed by const reference