Oscillations of Josephson-vortex flow resistance in narrow intrinsic Josephson junctions