Slopes of trigonal fibred surfaces and of higher dimensional fibrations