added horizontal/vertical pagination option and bower support