apply px factor to layout