send the callback to position function and limit the right positioning