Prevent slider from misaligning due to skipping offsetParents