slicer: added an array utility method