fixing bug with num_slides input box