Glitch when trying to move graphics around with slider

Hi,
I’m just getting started with Juce and I’m experiencing a glitch. When I attach the bounds of graphics to a slider to be moved around, it only works within the small area that is occupied by the slider that is controlling it. There’s a small distinct box that it works in before disappearing or becoming glitchy and laggy and it’s the same area that the slider recognises as mouse events. Anyone know what might be wrong? Thank you!

Show your code!