remove unused images, finalize slide content