1st put the carboy someplace high days before your rack,
2nd try to keep the temp in that are down as much as possible.
3rd start the siphon in the top 1/3 of the carboy then move down as you need to.
4th don't get the sucking end near the trub, you can tip the carboy and suck up most of the beer but expect to loose some as to not suck up trub.
5th you can rack to another carboy after a week to let more trub drop out of the beer, In kegs I cold crash and blow off 2 pints instead.
6th when brewing use Irish moss and a yeast that likes to flock out, I thought of this last but it should be first.