loop background
allow vertical or horizontal loops