clone element
added listeners and resize function