add px to layout attributes