Slower pace: two bases instead of three
Spend three nights in Bangkok and three in either Phuket or Krabi. You lose a transfer day and gain more time on the beach or for a Bangkok day trip to Ayutthaya.
Rainy-season version (about mid-May to mid-October)
The Andaman coast is wetter with rougher seas at this time. Consider Bangkok followed by Koh Samui on the Gulf of Thailand, whose heaviest rain usually comes later in the year, from about October to December. Weather varies, so check a recent forecast.
Culture-focused version
Swap the beaches for the north: three nights in Bangkok, including a day trip to Ayutthaya, then four nights in Chiang Mai for old-city temples, night markets and the mountain temple of Doi Suthep.