Entanglement of transverse modes in a pendular cavity