fixed up gallery view