fixed bug in accordions if less than 6 pics