jquery creates thumbs dynamically by counting number of li