Yes, there is an easy solution. You can use a USB extension cable, specifically a male-to-female USB cable, which should work just fine with your wired PS3 controller. These come in a variety of lengths, so you can pick one that gives you the reach you need.