$('button').on('click', () => {
$('.slider').css('pointer-events', 'none');
});
const slider = $('.slider').slick({
// options
});
$('button').on('click', () => {
slider.slick("slickSetOption", "swipe", false, false);
//Arguments: option : string, value : depends on option, refresh : boolean
});