update program to define constant - NUM_SLICES