Add directive to allow the slides to change.