setting defoult value of num_slides for 9