<% slides.each_with_index do |slide, index| %> <% id = 5 + (index+1) %> <% end %>