Just before undertaking any of this, you should inquire yourself why the gears are away from adjustment. I see a bike a day that does not have its wheels effectively inside the dropout - set the bike on its wheels and open and close the two skewers plus the wheels https://mybikereview.com/bike-gear-indexing/