add width and border to gallery