making attachment pane size correctly