handler for sliding menu