adding thumbnail display to gallery view