resizing the ui to become more slim