father smiled and nodded , and then abruptly turned to the bookshelves , where with a flick of his wrist he operated a switch , causing a portion of books to slide across to reveal a secret compartment .