updating last slide