fixed end error on slides_controller.rb