make slides a private variable