Constants recalculated to avoid dragging on last and first elements