add arrayfilter and slice