change width pixel to percent