Ah yes, I remember - because an opening wall is of arbitrary height it was easier to do it from the top or bottom than from the middle.
Looking at my original source, there's a comment:
;
;When all segments have slid, change cell attributes.
;
which suggests that I intended it to behave as I wrote it.