added css for the multiple page version, added a loop