optimised alert layout to prevent floating problems