Use .position() instead of .offset() when calculating $offsetContainer top