Resize function adjustment for REALLLLLY LONG device template names