dynamic size for slides.  bunch of testing cruft