Refactor the gist panel loopage somewhat.