Fixed gallery image count, added style, separated layout from helper to view

gallery display image: Separated layout from the helper and embedded in the view. Fixed image-counting and added style