Connecting non-slidable parts of machine tools to each other