Proper, code compliant, way to move an electrical outlet
You can use a special In wall splice called a tyco or nm splice and add enough to move the receptacle over. These splices are not required to be accessible and are kind of expensive at 15-20$ but they do what you want and are available at big box and specialty stores.