dynamic layout for bookview