update layout of last slide