delete &nbsp; secondly and set elements position