Makes sure the pipe distance changes accordingly.