resizing selection box