updated lib and fixed horizontal demo