This post is more an idea than a tutorial, but it might help you anyway...
On my actual project I had to modify the Pi in order to meet my requirements. Basically the Pi was too high to fit inside my Hexapod.
This is a companion discussion topic for the original entry at https://community.robotshop.com/index.php/tutorials/show/how-to-flatten-your-pi