write last slide to file