Just like String.slice can be used to slice a String, ByteArray.slice can be used to slice a ByteArray.