Add a slider to set the number of pieces.