Added templates for more flexible slide counters.