because of mars's gravitational pull
I don't think you understand the gravity of this situation!!
The gravity of a planet does not hold it in place, nor does any planet stay still. The planets are in constant motion as they orbit the sun.
A Geostationary orbit - it means that the satellite will always stay above the same point on Earth. Hope that helps
Mars' moons, Phobos and Deimos, stay in their orbits around Mars due to a combination of Mars' gravitational pull and their initial velocity when they were captured by Mars' gravity. The gravitational force from Mars keeps them in orbit, preventing them from flying off into space.
Stay in orbit
Stay above the same place on Earth "forever" ... thus they stay in the same place in our sky.
For a planet to stay in it's orbit the forces must be in balance.
Sir Isac Newton was the scientist who discovered why the planets stay in orbit.
An asteroid orbits the sun for the same reason that a planet does; it has angular momentum. Asteroids generally remain in the asteroid belt because that is the orbit which their momentum gives them; if they had more momentum they would orbit farther from the sun, and if they had less momentum they would orbit closer to the sun (or fall into the sun, if their angular momentum were sufficiently low).
Gravity holds satellites in orbit.
Interia and gravity combine to make a planet stay in an orbit.
No, you stay on Mars.