This plugin for Sketch helps you change the size of a layer to fit to a desired aspect ratio. Aspect ratios can be selected from a list of presets or entered manually. Another excellent resource from preciousforever.

set-aspect-ratio-dialog