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

if this does not work, remove!