converted absolute positions to percentage