separate the number of threads for frame and slice