You can leave it in that container if you like. The only workable solution for the long stem is to cut the head off the plant and restart it as a cutting with a very short stem. Try cutting an inch below the lowest green leaf. Leave the mother plant to continue offsetting or maybe sprout a new branch. Place the cutting in a bright place (no overhead sun) with good air flow to heal for a week or so. Then pot it up in a relatively small pot (maybe one size below the one in the picture) with just the little nub of leafless stem buried, and wait another week to water. From there on out leave the cutting in a bright location (avoiding overhead sun until it roots) and water it like normal, when the soil begins to go dry at depth. The cutting will look increasingly sad and deflated as time progresses, but then you will notice a change in appearance above ground when the roots begin to take up water, and that's a sign the plant will be able to tolerate more sun.