Make length of slopes based on length of weights