extracted slide handles to separate function