For Ω\e=(0,\e)×(0,1) a thin rectangle, we consider minimization of the two-dimensional nonlocal isoperimetric problem given by \[ \inf_u E^{\gamma}_{\Omega_\e}(u)\] where \[ E^{\gamma}_{\Omega_\e}(u):= P_{\Omega_\e}(\{u(x)=1\})+\gamma\int_{\Omega_\e}\abs{\nabla{v}}^2\,dx \] and the minimization is taken over competitors u∈BV(Ω\e;{±1}) satisfying a mass constraint \fintΩ\eu=m for some m∈(−1,1). Here PΩ\e({u(x)=1}) denotes the perimeter of the set {u(x)=1} in Ω\e, \fint denotes the integral average and v denotes the solution to the Poisson problem \[ -\Delta v=u-m\;\mbox{in}\;\Omega_\e,\quad\nabla v\cdot n_{\partial\Omega_\e}=0\;\mbox{on}\;\partial\Omega_\e,\quad\int_{\Omega_\e}v=0.\] We show that a striped pattern is the minimizer for \e≪1 with the number of stripes growing like γ1/3 as γ→∞. We then present generalizations of this result to higher dimensions.