adding repositioning on horizontal scroll