How to decrease the diameter of triangle-free graphs