fix(layout): make [hide] attr work properly with all device sizes