Kinematics of the jet in M 87 on scales of 100–1000 Schwarzschild radii