Change pixels and to percent