Made the position slider disabled while using a function since it can cause unexpected behavior.