updated span and offset of pics