Practice. It takes time, and chords are mostly muscle memory. A little practicing tip I got when playing cello... Hold your right forearm like the neck of the guitar and basically play on your arm. it sounds stupid, but it helps finger speed and remembering chord structures if you don't have your guitar handy.