Set parameters layout spacing to 0, otherwise it leaves extra spacing
when they are hidden.