Reduce mem using set_layer_attr function

Using set_layer_attr reduces 508 bytes of code memory and increases available memory by sane amount.
(no change to used memory)
Also reducing nearly 88 bytes from Debug version

Please check in regular user activity. Also double check two layers that have different alignment than center.