Chain length when swapping between cassette sizes (11-28 and 11-23)
It should be fine. 

The chain will be a little bit longer than necessary when using the 11-23, which may give some droop if you're running bad gear combinations (e.g. small chainring+small cog), but nothing serious. 

Never run with a too short chain. A bit long is OK.