fix take_slice params