The effect of the spatially varying spin current on a skyrmion is numerically investigated. It is shown that an inhomogeneous current density induces an elongation of the skyrmion. This elongation can be controlled using current pulses of different strength and duration. Long current pulses lead to a splitting that forms two replicas of the initial skyrmion while for short pulses the elongated skyrmion relaxes back to its initial circular state through rotation in the MHz-GHz frequency range. The frequency is dependent on the strength of the damping coefficient.