Q:
this is the under the bathroom sink. it helps the stopper go up and down. it keep sliding around so the stopper is getting stuck. why isnt it secure
***
A:
The problem appears to be the spring clip that secures the horizontal pivot rod to the vertical lift rod assembly.
In your photo:
The horizontal gold rod operates the sink stopper.
The diagonal silver strip with holes is called the clevis strap. It connects to the lift knob behind your faucet.
The silver butterfly shaped piece around the horizontal rod is a spring clip. Its job is to hold the clevis strap in position on the horizontal rod.
What's likely wrong: The spring clip appears to be improperly positioned, bent, or no longer applying enough tension. That allows the clevis strap to slide along the horizontal rod, interfering with the stopper's movement.
How to fix it
Look at where the horizontal rod passes through the clevis strap.
The spring clip should have one wing on each side of the clevis strap, effectively sandwiching it.
Squeeze the two wings together to reposition the clip. When released, they should grip the rod tightly.
If the clip is loose or bent, replace it. These are inexpensive parts, usually sold as sink pop up drain spring clips.
How to Adjust a Bathroom Sink Pop-up Drain | 1-Tom-Plumber
A replacement clip generally costs only a few dollars.
One thing I'd like to establish: When you say it keeps sliding around, is the diagonal silver strip sliding left and right along the horizontal gold rod, or is the horizontal gold rod itself sliding in and out of the drain pipe?
Those are two different problems, and the answer determines which part needs to be fixed.