position slider logic simplified