Improve layout algorithm (use full height of the rebel's area)