Modeling of spontaneous syncronous periodic activity observed in in-vitro networks