Complex sentence: His or her walled-up cell had only a slit to observe the altar and an opening for food, while outside was an open grave for when the occupant died.
Split into simpler sentences: His or her walled-up cell had only a slit to observe the altar and an opening for food. Outside was an open grave for when the occupant died.