fixed a bug with the slideshow source resizing itself improperly
fixed the memory leak