moving left items to right when needed