Fixes in the hide column feature in order to not touch the column count

See BT#9078