Slice filter for arrays.