Add attribute option for event listeners of bs slider