resize nav and right panel