Improved hide/show bars algorithm
Improved layouting