Fix and refactor add_slides.

Our old implementation was ugly and got broken in rails 4 migration, now it's nicer and fixed. We also now test this action.