add modal option and change javascript for slider