make layerwidget form resizing. fixes #296