Changing number of active particles via slider