Following a Thames Valley Police investigation, a man has been sentenced for drug offences in Oxford and Slough.