Ive fixed it ..I mixed up the divs trying to figure out what was causing the problem.
I probabaly went over board on the code trying to figure out what was wrong.. I may if I have time go back and streamline it.
The problem came from where the loop started and ended. You basicly have to place the the loop inside the container that you want to scroll. The problem i had was that portions were out side of the container.