refactored steps.rb way of checking number of slides, contents, titles