Smart fold/unfold with space