responsive thread-container layout (work with pure javascript)