shorten path to fit in screen