Control of pancake vortices by Josephson vortices in Bi2Sr2CaCu2O8+y