Fix resizing issue for smaller screens, add credit to Dylan!