omit middle part of the path when it is too long