Implemented Resize function using the side bar, it lacks unitary tests about the resizing