[#86030] Refactor + rename #array_slice helper