remove the empty last slide