The lines shouldn't be placed there, please place them in setup() section, after other 2 lines starting with carousel. ...
carousel.setTimePerFrame(10000); //10 seconds [default is 5s]
carousel.setTimePerTransition(1000); //1 sec [default is 0.5s]
Note, maybe you need only the time per frame setting change. The other slows the transition moving.