I think you can do this using constraints, but I don't know how, so maybe look for a tutorial on google.