Dynamic size of horizontal walls array