Updated FluidGridAdapter

 - Fixed cropping the last image in the row
 - Fixed strange behaviour when some images were skipped by wrong "if-else" sequence (I rewrote algorithm)