fixed problem of evenly spacing three buttons with non-zero spacing