Added column count to gallery