change position to percentage