The better way would be to use a width mate under advanced mates. This makes sure that if you change any dimensions it will stay in the middle of the slot.