Bangkok is definitely worth 2 days at the start and one at the end for shopping. In the middle phase, better to go to Phuket/Krabi to cover of all the islands nearby. Or else you need to take a bus/train from Bangkok to Chumpon and from there go visit Koh Samui side of islands.