Funneling of heavy ion beams