create category slice script