improve ellipsis of filename for different screen sizes