A photo wall with horizontal filling feature using jquery