fixing bug with event hendlers for adding new slide