Hey all.
So there's a song I've been wanting to get better at but what's getting in my way is just the chord changes. Two fingers stay on the same strings the whole way through but I have to slide them across to different frets, and as soon as I do that, the sounds just gets ugly and I'll get some buzzing, not to mention my fingers sometimes aren't in the proper part of the frets.

What's a way to get better at this? I know I'm meant to practise it but I don't know if I'm using the right method, what should I be focusing on when doing these changes? I just want to be able to produce a smooth consistent sound when switching, it's a pretty simple song but this makes it rough :/