I would put 'sometimes' at the end. Mind you, I wouldn't use 'sometimes' as it's a pretty meaningless adverb- I have little idea of the frequncy from the sentence. You can have two adverbs when the first is modifying the second (only occasionally), but 'only' can't really modify 'sometimes' as it's too general for the restriction IMO.