paginate gallery layout using bootstrap
rebase work
minor refactoring step 1
minor refactor step 2