count the modal position depend from scroll