adding touchend event handler to hide simplelayerswitcher