We three went out of the prison and walked up and down at some short distance from the gate, which was in a retired place. 
We three went out of the prison and walked up and down a short distance from the gate. 