Can't see much of the cassette, but I would say that the derailleur clamp is too far forward in the dropout, it should be all the way back. Not sure if that would have any bearing on chain slip
This ^ the hanger assembly should be further back for starters,
I have changed chain and my cassette is the problem the rear derailer is fine ..
Thanks for your reply back
You say you’ve changed the chain, the cassette/freewheel will no longer match the new chain, hence the slipping, other causes of ghost changes are frayed gear cables, also Inner gear cable sticking in the outer due to dirt & corrosion, put your bike into the largest cog on the cassette, now change gear into the smallest cog with the shifter, but don’t pedal so the chain stays put, the gear cable will now be slack, unhook the outer from the stop on the frame, and slide it down the inner, look for frayed bits of cable, don’t forget to check under the bottom bracket guide where the cable passes, if it’s just dirty clean up and put a film of grease on the inner cable and put the outer cable back into the derailleur and frame stop, just change gear back to the largest cog on the shifter to put the cable back under tension, and give a try out, if it’s frayed, or excessively corroded/dirty replace the inner & outer cable