replaced a clumsy @parallel for filter by mapslices