removes nonwanted space with couple of border layouts