That works.
reshape() preserves the ordering of the elements in the tensor. So if x has shape (seq_len, input_size), x.reshape(seq_len, 1, input_size) will keep the correct ordering.  As you described, it your seq_len is 8 and your input_size is 256.