Try turning the phone off and turning it back on. Your accelorometer might have gotten confused and a power cycle will help.
In the future, I'd say just leave the SD card in, connect your phone to your computer, and transfer files to the card with the file explorer.