resizing and fix panel