fix side panel resize functions