They mean the same. And, both are acceptable. It's about emphasis. Place "both" next to the thing you want to emphasise. I hope that helps