Al volo, farei così:

codice:
Lezione = function(id, pag, nome)
{ 
	this.id = id;
	this.pag = pag;
	this.nome = nome;
	this.slides = new Array();
}
Lezione.slideID = 0;
Lezione.prototype.createSlide = function(id, pr, nome)
{
	this.slides[this.constructor.slideID++] = {id:id, pr:pr, nome:nome}
	return this.slides.length;
}