using display style directly instead of css
make hide/show subpages safe
Merge pull request #1043 from jay-hodgson/SWC-1486-2

Swc-1486: use display style directly instead of setting via css