cleaned up gallery code
homepage fixes as described in Breeze card