Use ruby loop to display gallery images