Complex sentence: She lived in Ellen's apartment for a while, before moving into her own apartment, only to move back in with Ellen.
Split into simpler sentences: She lived in Ellen's apartment for a while, before moving into her own apartment. Only to move back in with Ellen.