Implement the face gesture for gallery preview