set position as percentage