add limit to draggable list function