Give https://github.com/rxhanson/Rectangle a try... or Magnet, if you prefer a paid app: https://github.com/rxhanson/Rectangle