To learn how to customize your gallery layout, please read Advanced Gallery Settings.