copy public slice and other slice to temp